<?php
require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
MYTCONN();
form_pr('ExcMoviments','','','post');
echo '<div class="title">Movimenta&ccedil;&atilde;o de valores</div>
<div class="Line">Tipo de Opera&ccedil;&atilde;o: ';
$Qur = "Compra;Venda#1;2";
mn_field('hselect','ED','OperationType',2,$Qur,'','',''); 
	echo ' Data do valor: ';
	mn_field('date','ED','TimeProfit',date("Y-m-d"),'ExcMoviments','8','','');
	echo ' Taxa: ';
	mn_field('text','ED','xps_Rate','0.000000000','12','12','','');
	echo ' Moeda: ';
	$qr_Currencies = "SELECT miso_ID AS NAME, miso_Cod_Elite AS ID FROM hd_monedasiso WHERE miso_Cod_Elite > 0";
	mn_field('select','ED','xps_Currency',1,$qr_Currencies,'','','');
	echo ' Valor: ';
	mn_field('text','ED','TSelected','0.00','19','19','','');
	mn_field('button','ED','ApplyRate','Aplicar Taxa','','','','" onclick="
		document.ExcMoviments.action=\''.$GLOBALS['URL'].'_response/rsproxy.php?pr=xc_makesell\';
		subform(\'ExcMoviments\',\'RatesAction\');');
echo '</div>';